package com.baidu.bulls.stock.user.schedule;

import cn.hutool.core.date.LocalDateTimeUtil;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import org.springframework.util.CollectionUtils;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

@Component
public class ScheduleJob {

//    @Scheduled(cron = "0/20 * * * * ?")
    @Scheduled(initialDelay = 10000,fixedRate = 25000)
    public void haha(){
        System.out.println(LocalDateTimeUtil.format(LocalDateTime.now(),"y-M-d H:m:s"));
    }

}
